import { createStore } from "vuex";
import user from './user.js'
import data from './data.js'
export default createStore({
  state: {
    url:''
  },
  mutations: {
    logout() {
      sessionStorage.removeItem('type')
      localStorage.removeItem('userToken')
      sessionStorage.removeItem('userToken')
    },
    saveUrl(state,url){
      state.url = url
    }
  },
  actions: {

  },
  modules: { user, data },
})